<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>SPHinXsys: SPHINXsys/src/shared/particles/solid_particles.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="logo.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">SPHinXsys
   &#160;<span id="projectnumber">alpha version</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_3dc1dabd28ba78e072d14d3fcfc90454.html">SPHINXsys</a></li><li class="navelem"><a class="el" href="dir_48ea983704c43b6d88c1fa3f4d09e369.html">src</a></li><li class="navelem"><a class="el" href="dir_0a0d9ef1793521534f0094f317758287.html">shared</a></li><li class="navelem"><a class="el" href="dir_18bd2fbc0c396aa3503f5e750d6566c2.html">particles</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">solid_particles.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="solid__particles_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/* -------------------------------------------------------------------------*</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment">*                               SPHinXsys                                   *</span></div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment">* --------------------------------------------------------------------------*</span></div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment">* SPHinXsys (pronunciation: s&#39;finksis) is an acronym from Smoothed Particle *</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment">* Hydrodynamics for industrial compleX systems. It provides C++ APIs for    *</span></div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment">* physical accurate simulation and aims to model coupled industrial dynamic *</span></div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment">* systems including fluid, solid, multi-body dynamics and beyond with SPH   *</span></div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment">* (smoothed particle hydrodynamics), a meshless computational method using  *</span></div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment">* particle discretization.                                                  *</span></div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment">*                                                                           *</span></div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment">* SPHinXsys is partially funded by German Research Foundation               *</span></div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment">* (Deutsche Forschungsgemeinschaft) DFG HU1527/6-1, HU1527/10-1             *</span></div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment">* and HU1527/12-1.                                                          *</span></div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment">*                                                                           *</span></div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment">* Portions copyright (c) 2017-2020 Technical University of Munich and       *</span></div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment">* the authors&#39; affiliations.                                                *</span></div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="comment">*                                                                           *</span></div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="comment">* Licensed under the Apache License, Version 2.0 (the &quot;License&quot;); you may   *</span></div><div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="comment">* not use this file except in compliance with the License. You may obtain a *</span></div><div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="comment">* copy of the License at http://www.apache.org/licenses/LICENSE-2.0.        *</span></div><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="comment">*                                                                           *</span></div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="comment">* --------------------------------------------------------------------------*/</span></div><div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;<span class="preprocessor">#pragma once</span></div><div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;</div><div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;<span class="preprocessor">#include &quot;base_particles.h&quot;</span></div><div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="xml__engine_8h.html">xml_engine.h</a>&quot;</span></div><div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;<span class="preprocessor">#include &lt;fstream&gt;</span></div><div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;</div><div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;<span class="keyword">using namespace </span><a class="code" href="namespacestd.html">std</a>;</div><div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespace_s_p_h.html">SPH</a> {</div><div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;</div><div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;    <span class="keyword">class </span>Solid;</div><div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;    <span class="keyword">class </span>ElasticSolid;</div><div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;    <span class="keyword">class </span>ActiveMuscle;</div><div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;    <span class="keyword">class </span>BaseMaterial;</div><div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;</div><div class="line"><a name="l00050"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_solid_particle_data.html">   50</a></span>&#160;    <span class="keyword">class </span><a class="code" href="class_s_p_h_1_1_solid_particle_data.html">SolidParticleData</a> </div><div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;    {</div><div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;    <span class="keyword">public</span>:</div><div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;        <a class="code" href="class_s_p_h_1_1_solid_particle_data.html">SolidParticleData</a>();</div><div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;        <a class="code" href="class_s_p_h_1_1_solid_particle_data.html">SolidParticleData</a>(<a class="code" href="class_s_p_h_1_1_base_particle_data.html">BaseParticleData</a>&amp; base_particle_data, <a class="code" href="class_s_p_h_1_1_solid.html">Solid</a>* solid);</div><div class="line"><a name="l00057"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_solid_particle_data.html#a6ac0e3869cd9eaf0adea8e1006369fe9">   57</a></span>&#160;        <span class="keyword">virtual</span> ~<a class="code" href="class_s_p_h_1_1_solid_particle_data.html">SolidParticleData</a>() {};</div><div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;</div><div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;        Real rho_0_, rho_n_, mass_;</div><div class="line"><a name="l00062"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_solid_particle_data.html#a9c7fe2e82f0cc433f5d9f8973b4e1514">   62</a></span>&#160;        Vecd <a class="code" href="class_s_p_h_1_1_solid_particle_data.html#a9c7fe2e82f0cc433f5d9f8973b4e1514">n_0_</a>, n_;</div><div class="line"><a name="l00064"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_solid_particle_data.html#acaad40014aeb6574fc5faa26d7ae357f">   64</a></span>&#160;        Matd <a class="code" href="class_s_p_h_1_1_solid_particle_data.html#acaad40014aeb6574fc5faa26d7ae357f">B_</a>;</div><div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;    </div><div class="line"><a name="l00068"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_solid_particle_data.html#a3edcdfa9f2c8d6f9cdd9a78eca343b27">   68</a></span>&#160;        Vecd <a class="code" href="class_s_p_h_1_1_solid_particle_data.html#a3edcdfa9f2c8d6f9cdd9a78eca343b27">vel_ave_</a>, dvel_dt_ave_;    </div><div class="line"><a name="l00070"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_solid_particle_data.html#a2af54f5f281d4bb34994ad9f76ea21df">   70</a></span>&#160;        Vecd <a class="code" href="class_s_p_h_1_1_solid_particle_data.html#a2af54f5f281d4bb34994ad9f76ea21df">force_from_fluid_</a>, viscous_force_from_fluid_;</div><div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;    };</div><div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;</div><div class="line"><a name="l00077"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_elastic_solid_particle_data.html">   77</a></span>&#160;    <span class="keyword">class </span><a class="code" href="class_s_p_h_1_1_elastic_solid_particle_data.html">ElasticSolidParticleData</a> </div><div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;    {</div><div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;    <span class="keyword">public</span>:</div><div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;        <a class="code" href="class_s_p_h_1_1_elastic_solid_particle_data.html">ElasticSolidParticleData</a>(<a class="code" href="class_s_p_h_1_1_base_particle_data.html">BaseParticleData</a> &amp;base_particle_data,</div><div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;            <a class="code" href="class_s_p_h_1_1_elastic_solid.html">ElasticSolid</a> *elastic_solid);</div><div class="line"><a name="l00082"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_elastic_solid_particle_data.html#a8dd15181ad2de15e33630dfbe8248de9">   82</a></span>&#160;        <span class="keyword">virtual</span> ~<a class="code" href="class_s_p_h_1_1_elastic_solid_particle_data.html">ElasticSolidParticleData</a>() {};</div><div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;</div><div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;        Matd F_, dF_dt_, stress_;</div><div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;</div><div class="line"><a name="l00088"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_elastic_solid_particle_data.html#ac65c205f01cb891c846e149aa67bf135">   88</a></span>&#160;        Vecd <a class="code" href="class_s_p_h_1_1_elastic_solid_particle_data.html#ac65c205f01cb891c846e149aa67bf135">pos_temp_</a>;             </div><div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;    };</div><div class="line"><a name="l00094"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_solid_particles.html">   94</a></span>&#160;    <span class="keyword">class </span><a class="code" href="class_s_p_h_1_1_solid_particles.html">SolidParticles</a> : <span class="keyword">public</span> <a class="code" href="class_s_p_h_1_1_base_particles.html">BaseParticles</a></div><div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;    {</div><div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;    <span class="keyword">public</span>:</div><div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;        <a class="code" href="class_s_p_h_1_1_solid_particles.html">SolidParticles</a>(<a class="code" href="class_s_p_h_1_1_s_p_h_body.html">SPHBody</a>* body);</div><div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;        <a class="code" href="class_s_p_h_1_1_solid_particles.html">SolidParticles</a>(<a class="code" href="class_s_p_h_1_1_s_p_h_body.html">SPHBody</a>* body, <a class="code" href="class_s_p_h_1_1_solid.html">Solid</a>* solid);</div><div class="line"><a name="l00101"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_solid_particles.html#a8a8e4435b2251fe13a324c4e3f16f989">  101</a></span>&#160;        <span class="keyword">virtual</span> ~<a class="code" href="class_s_p_h_1_1_solid_particles.html">SolidParticles</a>() {};</div><div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;</div><div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;        StdLargeVec&lt;SolidParticleData&gt; solid_body_data_; </div><div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;    </div><div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">void</span> OffsetInitialParticlePosition(Vecd offset);</div><div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">void</span> AddABufferParticle() <span class="keyword">override</span>;</div><div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">void</span> CopyFromAnotherParticle(<span class="keywordtype">size_t</span> this_particle_index, <span class="keywordtype">size_t</span> another_particle_index) <span class="keyword">override</span>;</div><div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">void</span> swapParticles(<span class="keywordtype">size_t</span> this_particle_index, <span class="keywordtype">size_t</span> that_particle_index) <span class="keyword">override</span>;</div><div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;</div><div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">void</span> WriteParticlesToVtuFile(ofstream &amp;output_file) <span class="keyword">override</span>;</div><div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">void</span> WriteParticlesToPltFile(ofstream &amp;output_file) <span class="keyword">override</span>;</div><div class="line"><a name="l00131"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_solid_particles.html#a0485cb8fa3f0b1c8925dba33bd99e08b">  131</a></span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_s_p_h_1_1_solid_particles.html#a0485cb8fa3f0b1c8925dba33bd99e08b">WriteParticlesToXmlFile</a>(std::string &amp;filefullpath) {};</div><div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;        <span class="comment">/* Write particle data in XML format for restart. */</span></div><div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">void</span> WriteParticlesToXmlForRestart(std::string &amp;filefullpath) <span class="keyword">override</span>;</div><div class="line"><a name="l00143"></a><span class="lineno">  143</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">void</span> ReadParticleFromXmlForRestart(std::string &amp;filefullpath) <span class="keyword">override</span> ;</div><div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">void</span> ReadFromXmlForReloadParticle(std::string &amp;filefullpath) <span class="keyword">override</span>;</div><div class="line"><a name="l00150"></a><span class="lineno">  150</span>&#160;        <span class="keyword">virtual</span> <a class="code" href="class_s_p_h_1_1_solid_particles.html">SolidParticles</a>* PointToThisObject() <span class="keyword">override</span>;</div><div class="line"><a name="l00152"></a><span class="lineno">  152</span>&#160;        <span class="keyword">virtual</span> Vecd normalizeKernelGradient(<span class="keywordtype">size_t</span> particle_index_i, Vecd&amp; gradient) <span class="keyword">override</span>;</div><div class="line"><a name="l00154"></a><span class="lineno">  154</span>&#160;        <span class="keyword">virtual</span> Vecd getKernelGradient(<span class="keywordtype">size_t</span> particle_index_i, <span class="keywordtype">size_t</span> particle_index_j, Real dW_ij, Vecd&amp; e_ij) <span class="keyword">override</span>;</div><div class="line"><a name="l00155"></a><span class="lineno">  155</span>&#160;    };</div><div class="line"><a name="l00156"></a><span class="lineno">  156</span>&#160;    </div><div class="line"><a name="l00161"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_elastic_solid_particles.html">  161</a></span>&#160;    <span class="keyword">class </span><a class="code" href="class_s_p_h_1_1_elastic_solid_particles.html">ElasticSolidParticles</a> : <span class="keyword">public</span> <a class="code" href="class_s_p_h_1_1_solid_particles.html">SolidParticles</a></div><div class="line"><a name="l00162"></a><span class="lineno">  162</span>&#160;    {</div><div class="line"><a name="l00163"></a><span class="lineno">  163</span>&#160;    <span class="keyword">protected</span>:</div><div class="line"><a name="l00165"></a><span class="lineno">  165</span>&#160;        Real von_Mises_stress(<span class="keywordtype">size_t</span> particle_i);</div><div class="line"><a name="l00166"></a><span class="lineno">  166</span>&#160;    <span class="keyword">public</span>:</div><div class="line"><a name="l00172"></a><span class="lineno">  172</span>&#160;        <a class="code" href="class_s_p_h_1_1_elastic_solid_particles.html">ElasticSolidParticles</a>(<a class="code" href="class_s_p_h_1_1_s_p_h_body.html">SPHBody</a>* body, <a class="code" href="class_s_p_h_1_1_elastic_solid.html">ElasticSolid</a>* elastic_solid);</div><div class="line"><a name="l00176"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_elastic_solid_particles.html#a7113201c41d434fa5862e6412f7a4b3c">  176</a></span>&#160;        <span class="keyword">virtual</span> <a class="code" href="class_s_p_h_1_1_elastic_solid_particles.html#a7113201c41d434fa5862e6412f7a4b3c">~ElasticSolidParticles</a>() {};</div><div class="line"><a name="l00177"></a><span class="lineno">  177</span>&#160;</div><div class="line"><a name="l00179"></a><span class="lineno">  179</span>&#160;        StdLargeVec&lt;ElasticSolidParticleData&gt; elastic_body_data_;</div><div class="line"><a name="l00180"></a><span class="lineno">  180</span>&#160;</div><div class="line"><a name="l00182"></a><span class="lineno">  182</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">void</span> CopyFromAnotherParticle(<span class="keywordtype">size_t</span> this_particle_index, <span class="keywordtype">size_t</span> another_particle_index) <span class="keyword">override</span>;</div><div class="line"><a name="l00184"></a><span class="lineno">  184</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">void</span> swapParticles(<span class="keywordtype">size_t</span> this_particle_index, <span class="keywordtype">size_t</span> that_particle_index) <span class="keyword">override</span>;</div><div class="line"><a name="l00185"></a><span class="lineno">  185</span>&#160;</div><div class="line"><a name="l00190"></a><span class="lineno">  190</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">void</span> WriteParticlesToVtuFile(ofstream &amp;output_file) <span class="keyword">override</span>;</div><div class="line"><a name="l00195"></a><span class="lineno">  195</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">void</span> WriteParticlesToPltFile(ofstream &amp;output_file) <span class="keyword">override</span>;</div><div class="line"><a name="l00200"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_elastic_solid_particles.html#aed6e1d306ef46c94fd8a7a76e332dcf6">  200</a></span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_s_p_h_1_1_elastic_solid_particles.html#aed6e1d306ef46c94fd8a7a76e332dcf6">WriteParticlesToXmlFile</a>(std::string &amp;filefullpath)<span class="keyword"> override</span>{};</div><div class="line"><a name="l00205"></a><span class="lineno">  205</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">void</span> WriteParticlesToXmlForRestart(std::string &amp;filefullpath) <span class="keyword">override</span>;</div><div class="line"><a name="l00210"></a><span class="lineno">  210</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">void</span> ReadParticleFromXmlForRestart(std::string &amp;filefullpath) <span class="keyword">override</span> ;</div><div class="line"><a name="l00211"></a><span class="lineno">  211</span>&#160;</div><div class="line"><a name="l00213"></a><span class="lineno">  213</span>&#160;        <span class="keyword">virtual</span> <a class="code" href="class_s_p_h_1_1_elastic_solid_particles.html">ElasticSolidParticles</a>* PointToThisObject() <span class="keyword">override</span>;</div><div class="line"><a name="l00214"></a><span class="lineno">  214</span>&#160;    };</div><div class="line"><a name="l00215"></a><span class="lineno">  215</span>&#160;</div><div class="line"><a name="l00220"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_active_muscle_particle_data.html">  220</a></span>&#160;    <span class="keyword">class </span><a class="code" href="class_s_p_h_1_1_active_muscle_particle_data.html">ActiveMuscleParticleData</a></div><div class="line"><a name="l00221"></a><span class="lineno">  221</span>&#160;    {</div><div class="line"><a name="l00222"></a><span class="lineno">  222</span>&#160;    <span class="keyword">public</span>:</div><div class="line"><a name="l00224"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_active_muscle_particle_data.html#a251b94d68a41fdac9e0a4ca74adcf1f6">  224</a></span>&#160;        <a class="code" href="class_s_p_h_1_1_active_muscle_particle_data.html#a251b94d68a41fdac9e0a4ca74adcf1f6">ActiveMuscleParticleData</a>() </div><div class="line"><a name="l00225"></a><span class="lineno">  225</span>&#160;            : active_contraction_stress_(0.0), active_stress_(0.0) {};</div><div class="line"><a name="l00226"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_active_muscle_particle_data.html#af91456111d1dbb5eaebd44f7d574cb44">  226</a></span>&#160;        <span class="keyword">virtual</span> ~<a class="code" href="class_s_p_h_1_1_active_muscle_particle_data.html">ActiveMuscleParticleData</a>() {};</div><div class="line"><a name="l00227"></a><span class="lineno">  227</span>&#160;</div><div class="line"><a name="l00229"></a><span class="lineno">  229</span>&#160;        Real active_contraction_stress_;</div><div class="line"><a name="l00230"></a><span class="lineno">  230</span>&#160;        Matd active_stress_;</div><div class="line"><a name="l00231"></a><span class="lineno">  231</span>&#160;    };</div><div class="line"><a name="l00232"></a><span class="lineno">  232</span>&#160;</div><div class="line"><a name="l00237"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_active_muscle_particles.html">  237</a></span>&#160;    <span class="keyword">class </span><a class="code" href="class_s_p_h_1_1_active_muscle_particles.html">ActiveMuscleParticles</a> : <span class="keyword">public</span> <a class="code" href="class_s_p_h_1_1_elastic_solid_particles.html">ElasticSolidParticles</a></div><div class="line"><a name="l00238"></a><span class="lineno">  238</span>&#160;    {</div><div class="line"><a name="l00239"></a><span class="lineno">  239</span>&#160;    <span class="keyword">public</span>:</div><div class="line"><a name="l00241"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_active_muscle_particles.html#a60851711ba4cd356fd76460ff4726e3c">  241</a></span>&#160;        StdLargeVec&lt;ActiveMuscleParticleData&gt; <a class="code" href="class_s_p_h_1_1_active_muscle_particles.html#a60851711ba4cd356fd76460ff4726e3c">active_muscle_data_</a>;</div><div class="line"><a name="l00242"></a><span class="lineno">  242</span>&#160;</div><div class="line"><a name="l00244"></a><span class="lineno">  244</span>&#160;        <a class="code" href="class_s_p_h_1_1_active_muscle_particles.html">ActiveMuscleParticles</a>(<a class="code" href="class_s_p_h_1_1_s_p_h_body.html">SPHBody</a>* body, <a class="code" href="class_s_p_h_1_1_active_muscle.html">ActiveMuscle</a>* active_muscle);</div><div class="line"><a name="l00246"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_active_muscle_particles.html#aa16b0bae2f7ec4f2904b3e152f11211e">  246</a></span>&#160;        <span class="keyword">virtual</span> <a class="code" href="class_s_p_h_1_1_active_muscle_particles.html#aa16b0bae2f7ec4f2904b3e152f11211e">~ActiveMuscleParticles</a>() {};</div><div class="line"><a name="l00247"></a><span class="lineno">  247</span>&#160;</div><div class="line"><a name="l00249"></a><span class="lineno">  249</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">void</span> CopyFromAnotherParticle(<span class="keywordtype">size_t</span> this_particle_index, <span class="keywordtype">size_t</span> another_particle_index) <span class="keyword">override</span>;</div><div class="line"><a name="l00251"></a><span class="lineno">  251</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">void</span> swapParticles(<span class="keywordtype">size_t</span> this_particle_index, <span class="keywordtype">size_t</span> that_particle_index) <span class="keyword">override</span>;</div><div class="line"><a name="l00252"></a><span class="lineno">  252</span>&#160;</div><div class="line"><a name="l00257"></a><span class="lineno">  257</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">void</span> WriteParticlesToVtuFile(ofstream&amp; output_file) <span class="keyword">override</span>;</div><div class="line"><a name="l00262"></a><span class="lineno">  262</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">void</span> WriteParticlesToPltFile(ofstream&amp; output_file) <span class="keyword">override</span>;</div><div class="line"><a name="l00267"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_active_muscle_particles.html#aff4e8dfca55be4f2f89a28d7b4279115">  267</a></span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_s_p_h_1_1_active_muscle_particles.html#aff4e8dfca55be4f2f89a28d7b4279115">WriteParticlesToXmlFile</a>(std::string&amp; filefullpath)<span class="keyword"> override </span>{};</div><div class="line"><a name="l00272"></a><span class="lineno">  272</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">void</span> WriteParticlesToXmlForRestart(std::string&amp; filefullpath) <span class="keyword">override</span>;</div><div class="line"><a name="l00277"></a><span class="lineno">  277</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">void</span> ReadParticleFromXmlForRestart(std::string&amp; filefullpath) <span class="keyword">override</span>;</div><div class="line"><a name="l00278"></a><span class="lineno">  278</span>&#160;</div><div class="line"><a name="l00280"></a><span class="lineno">  280</span>&#160;        <span class="keyword">virtual</span> <a class="code" href="class_s_p_h_1_1_active_muscle_particles.html">ActiveMuscleParticles</a>* PointToThisObject() <span class="keyword">override</span>;</div><div class="line"><a name="l00281"></a><span class="lineno">  281</span>&#160;</div><div class="line"><a name="l00283"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_active_muscle_particles.html#a343ebc7910160b74cb04327a17bcb507">  283</a></span>&#160;        Real <a class="code" href="class_s_p_h_1_1_active_muscle_particles.html#a343ebc7910160b74cb04327a17bcb507">getActiveContractionStress</a>(<span class="keywordtype">size_t</span> particle_index) {</div><div class="line"><a name="l00284"></a><span class="lineno">  284</span>&#160;            <span class="keywordflow">return</span>  active_muscle_data_[particle_index].active_contraction_stress_;</div><div class="line"><a name="l00285"></a><span class="lineno">  285</span>&#160;        }</div><div class="line"><a name="l00287"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_active_muscle_particles.html#a50486b75d20add6b48df127d7769d2de">  287</a></span>&#160;        Matd <a class="code" href="class_s_p_h_1_1_active_muscle_particles.html#a50486b75d20add6b48df127d7769d2de">getActiveStress</a>(<span class="keywordtype">size_t</span> particel_index) {</div><div class="line"><a name="l00288"></a><span class="lineno">  288</span>&#160;            <span class="keywordflow">return</span> active_muscle_data_[particel_index].active_stress_;</div><div class="line"><a name="l00289"></a><span class="lineno">  289</span>&#160;        };</div><div class="line"><a name="l00290"></a><span class="lineno">  290</span>&#160;    };</div><div class="line"><a name="l00291"></a><span class="lineno">  291</span>&#160;}</div><div class="ttc" id="class_s_p_h_1_1_elastic_solid_particles_html_aed6e1d306ef46c94fd8a7a76e332dcf6"><div class="ttname"><a href="class_s_p_h_1_1_elastic_solid_particles.html#aed6e1d306ef46c94fd8a7a76e332dcf6">SPH::ElasticSolidParticles::WriteParticlesToXmlFile</a></div><div class="ttdeci">virtual void WriteParticlesToXmlFile(std::string &amp;filefullpath) override</div><div class="ttdoc">Write particle data in XML format. </div><div class="ttdef"><b>Definition:</b> solid_particles.h:200</div></div>
<div class="ttc" id="class_s_p_h_1_1_base_particles_html"><div class="ttname"><a href="class_s_p_h_1_1_base_particles.html">SPH::BaseParticles</a></div><div class="ttdoc">Particles with essential (geometric and kinematic) data. There are three types of particles...</div><div class="ttdef"><b>Definition:</b> base_particles.h:87</div></div>
<div class="ttc" id="class_s_p_h_1_1_elastic_solid_particle_data_html"><div class="ttname"><a href="class_s_p_h_1_1_elastic_solid_particle_data.html">SPH::ElasticSolidParticleData</a></div><div class="ttdoc">Data for elastic solid body particles. </div><div class="ttdef"><b>Definition:</b> solid_particles.h:77</div></div>
<div class="ttc" id="class_s_p_h_1_1_elastic_solid_particles_html"><div class="ttname"><a href="class_s_p_h_1_1_elastic_solid_particles.html">SPH::ElasticSolidParticles</a></div><div class="ttdoc">A group of particles with elastic body particle data. </div><div class="ttdef"><b>Definition:</b> solid_particles.h:161</div></div>
<div class="ttc" id="class_s_p_h_1_1_solid_particle_data_html_a9c7fe2e82f0cc433f5d9f8973b4e1514"><div class="ttname"><a href="class_s_p_h_1_1_solid_particle_data.html#a9c7fe2e82f0cc433f5d9f8973b4e1514">SPH::SolidParticleData::n_0_</a></div><div class="ttdeci">Vecd n_0_</div><div class="ttdef"><b>Definition:</b> solid_particles.h:62</div></div>
<div class="ttc" id="class_s_p_h_1_1_active_muscle_particles_html_a343ebc7910160b74cb04327a17bcb507"><div class="ttname"><a href="class_s_p_h_1_1_active_muscle_particles.html#a343ebc7910160b74cb04327a17bcb507">SPH::ActiveMuscleParticles::getActiveContractionStress</a></div><div class="ttdeci">Real getActiveContractionStress(size_t particle_index)</div><div class="ttdef"><b>Definition:</b> solid_particles.h:283</div></div>
<div class="ttc" id="class_s_p_h_1_1_solid_html"><div class="ttname"><a href="class_s_p_h_1_1_solid.html">SPH::Solid</a></div><div class="ttdoc">Base class of all solids. </div><div class="ttdef"><b>Definition:</b> base_material.h:140</div></div>
<div class="ttc" id="class_s_p_h_1_1_elastic_solid_particle_data_html_ac65c205f01cb891c846e149aa67bf135"><div class="ttname"><a href="class_s_p_h_1_1_elastic_solid_particle_data.html#ac65c205f01cb891c846e149aa67bf135">SPH::ElasticSolidParticleData::pos_temp_</a></div><div class="ttdeci">Vecd pos_temp_</div><div class="ttdef"><b>Definition:</b> solid_particles.h:88</div></div>
<div class="ttc" id="namespacestd_html"><div class="ttname"><a href="namespacestd.html">std</a></div></div>
<div class="ttc" id="class_s_p_h_1_1_solid_particle_data_html_a2af54f5f281d4bb34994ad9f76ea21df"><div class="ttname"><a href="class_s_p_h_1_1_solid_particle_data.html#a2af54f5f281d4bb34994ad9f76ea21df">SPH::SolidParticleData::force_from_fluid_</a></div><div class="ttdeci">Vecd force_from_fluid_</div><div class="ttdef"><b>Definition:</b> solid_particles.h:70</div></div>
<div class="ttc" id="class_s_p_h_1_1_active_muscle_particles_html_a50486b75d20add6b48df127d7769d2de"><div class="ttname"><a href="class_s_p_h_1_1_active_muscle_particles.html#a50486b75d20add6b48df127d7769d2de">SPH::ActiveMuscleParticles::getActiveStress</a></div><div class="ttdeci">Matd getActiveStress(size_t particel_index)</div><div class="ttdef"><b>Definition:</b> solid_particles.h:287</div></div>
<div class="ttc" id="class_s_p_h_1_1_solid_particles_html_a0485cb8fa3f0b1c8925dba33bd99e08b"><div class="ttname"><a href="class_s_p_h_1_1_solid_particles.html#a0485cb8fa3f0b1c8925dba33bd99e08b">SPH::SolidParticles::WriteParticlesToXmlFile</a></div><div class="ttdeci">virtual void WriteParticlesToXmlFile(std::string &amp;filefullpath)</div><div class="ttdoc">Write particle data in XML format. </div><div class="ttdef"><b>Definition:</b> solid_particles.h:131</div></div>
<div class="ttc" id="xml__engine_8h_html"><div class="ttname"><a href="xml__engine_8h.html">xml_engine.h</a></div><div class="ttdoc">XML class for xml input and output, this is GUI of simbody xml parser. </div></div>
<div class="ttc" id="class_s_p_h_1_1_solid_particle_data_html"><div class="ttname"><a href="class_s_p_h_1_1_solid_particle_data.html">SPH::SolidParticleData</a></div><div class="ttdoc">Data for solid body particles. </div><div class="ttdef"><b>Definition:</b> solid_particles.h:50</div></div>
<div class="ttc" id="class_s_p_h_1_1_solid_particles_html"><div class="ttname"><a href="class_s_p_h_1_1_solid_particles.html">SPH::SolidParticles</a></div><div class="ttdoc">A group of particles with solid body particle data. </div><div class="ttdef"><b>Definition:</b> solid_particles.h:94</div></div>
<div class="ttc" id="class_s_p_h_1_1_solid_particle_data_html_a3edcdfa9f2c8d6f9cdd9a78eca343b27"><div class="ttname"><a href="class_s_p_h_1_1_solid_particle_data.html#a3edcdfa9f2c8d6f9cdd9a78eca343b27">SPH::SolidParticleData::vel_ave_</a></div><div class="ttdeci">Vecd vel_ave_</div><div class="ttdef"><b>Definition:</b> solid_particles.h:68</div></div>
<div class="ttc" id="class_s_p_h_1_1_active_muscle_particles_html"><div class="ttname"><a href="class_s_p_h_1_1_active_muscle_particles.html">SPH::ActiveMuscleParticles</a></div><div class="ttdoc">A group of particles with active muscle particle data. </div><div class="ttdef"><b>Definition:</b> solid_particles.h:237</div></div>
<div class="ttc" id="class_s_p_h_1_1_active_muscle_particles_html_a60851711ba4cd356fd76460ff4726e3c"><div class="ttname"><a href="class_s_p_h_1_1_active_muscle_particles.html#a60851711ba4cd356fd76460ff4726e3c">SPH::ActiveMuscleParticles::active_muscle_data_</a></div><div class="ttdeci">StdLargeVec&lt; ActiveMuscleParticleData &gt; active_muscle_data_</div><div class="ttdef"><b>Definition:</b> solid_particles.h:241</div></div>
<div class="ttc" id="class_s_p_h_1_1_active_muscle_particles_html_aff4e8dfca55be4f2f89a28d7b4279115"><div class="ttname"><a href="class_s_p_h_1_1_active_muscle_particles.html#aff4e8dfca55be4f2f89a28d7b4279115">SPH::ActiveMuscleParticles::WriteParticlesToXmlFile</a></div><div class="ttdeci">virtual void WriteParticlesToXmlFile(std::string &amp;filefullpath) override</div><div class="ttdoc">Write particle data in XML format. </div><div class="ttdef"><b>Definition:</b> solid_particles.h:267</div></div>
<div class="ttc" id="class_s_p_h_1_1_base_particle_data_html"><div class="ttname"><a href="class_s_p_h_1_1_base_particle_data.html">SPH::BaseParticleData</a></div><div class="ttdoc">A based particle with essential data for all types of particles. </div><div class="ttdef"><b>Definition:</b> base_particles.h:49</div></div>
<div class="ttc" id="class_s_p_h_1_1_elastic_solid_html"><div class="ttname"><a href="class_s_p_h_1_1_elastic_solid.html">SPH::ElasticSolid</a></div><div class="ttdoc">Abstract class for a generalized elastic solid. </div><div class="ttdef"><b>Definition:</b> elastic_solid.h:58</div></div>
<div class="ttc" id="class_s_p_h_1_1_elastic_solid_particles_html_a7113201c41d434fa5862e6412f7a4b3c"><div class="ttname"><a href="class_s_p_h_1_1_elastic_solid_particles.html#a7113201c41d434fa5862e6412f7a4b3c">SPH::ElasticSolidParticles::~ElasticSolidParticles</a></div><div class="ttdeci">virtual ~ElasticSolidParticles()</div><div class="ttdoc">Destructor. </div><div class="ttdef"><b>Definition:</b> solid_particles.h:176</div></div>
<div class="ttc" id="class_s_p_h_1_1_solid_particle_data_html_acaad40014aeb6574fc5faa26d7ae357f"><div class="ttname"><a href="class_s_p_h_1_1_solid_particle_data.html#acaad40014aeb6574fc5faa26d7ae357f">SPH::SolidParticleData::B_</a></div><div class="ttdeci">Matd B_</div><div class="ttdef"><b>Definition:</b> solid_particles.h:64</div></div>
<div class="ttc" id="class_s_p_h_1_1_s_p_h_body_html"><div class="ttname"><a href="class_s_p_h_1_1_s_p_h_body.html">SPH::SPHBody</a></div><div class="ttdoc">SPHBody is a base body with basic data and functions. Its derived class can be a real fluid body...</div><div class="ttdef"><b>Definition:</b> base_body.h:73</div></div>
<div class="ttc" id="class_s_p_h_1_1_active_muscle_particles_html_aa16b0bae2f7ec4f2904b3e152f11211e"><div class="ttname"><a href="class_s_p_h_1_1_active_muscle_particles.html#aa16b0bae2f7ec4f2904b3e152f11211e">SPH::ActiveMuscleParticles::~ActiveMuscleParticles</a></div><div class="ttdeci">virtual ~ActiveMuscleParticles()</div><div class="ttdef"><b>Definition:</b> solid_particles.h:246</div></div>
<div class="ttc" id="class_s_p_h_1_1_active_muscle_html"><div class="ttname"><a href="class_s_p_h_1_1_active_muscle.html">SPH::ActiveMuscle</a></div><div class="ttdoc">Here, the active reponse is considered. </div><div class="ttdef"><b>Definition:</b> elastic_solid.h:276</div></div>
<div class="ttc" id="class_s_p_h_1_1_active_muscle_particle_data_html"><div class="ttname"><a href="class_s_p_h_1_1_active_muscle_particle_data.html">SPH::ActiveMuscleParticleData</a></div><div class="ttdoc">Data for active muscle. </div><div class="ttdef"><b>Definition:</b> solid_particles.h:220</div></div>
<div class="ttc" id="class_s_p_h_1_1_active_muscle_particle_data_html_a251b94d68a41fdac9e0a4ca74adcf1f6"><div class="ttname"><a href="class_s_p_h_1_1_active_muscle_particle_data.html#a251b94d68a41fdac9e0a4ca74adcf1f6">SPH::ActiveMuscleParticleData::ActiveMuscleParticleData</a></div><div class="ttdeci">ActiveMuscleParticleData()</div><div class="ttdef"><b>Definition:</b> solid_particles.h:224</div></div>
<div class="ttc" id="namespace_s_p_h_html"><div class="ttname"><a href="namespace_s_p_h.html">SPH</a></div><div class="ttdef"><b>Definition:</b> base_body_supplementary.cpp:11</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
</body>
</html>
